import asyncio

from bald_spider.crawler import CrawlerProcess
from tests.baidu_spider.spiders.baidu_spider import BaiduSpider

from bald_spider.utils.project import get_settings
# from bald_spider.utils import system as _


async def test():
    setting = get_settings()
    process = CrawlerProcess(setting)
    await process.crawl(BaiduSpider)
    await process.start()


asyncio.run(test())
